class BlinkPoint extends egret.Sprite{
	private arr;
	public constructor() {
		super();
		this.arr=new Array();
	
	}
	public Show(){
		if(this.arr.length>0){
			for(var z=0;z<this.arr.length;){
			this.removeChild(this.arr[z]);
			this.arr.splice(0,1);
			
			}
		}

		for(var z=0;z<Math.round(Math.random()*3)+3;z++){
			var pic=new egret.Bitmap(RES.getRes("Point"+Math.round(Math.random()+1)+"_png"));
			this.addChild(pic);
			this.arr.push(pic);
			if(z%2==0){
				pic.x=740/2+200+(Math.random())*150;
			}
			else{
				pic.x=740/2-200-(Math.random())*150;
			}
			pic.y=50+(Math.random()-0.5)*200;
			pic.alpha=0.5;
			egret.Tween.get(pic,{loop:true}).to({alpha:0.1},1000+200*z,egret.Ease.cubicOut).to({alpha:0.5},1000+200*z,egret.Ease.cubicOut)
		}
	}
}